package com.cloud.lan.api.manage;

import com.cloud.lan.api.dto.req.SubmailTaskReq;
import com.cloud.lan.entity.base.BaseResponse;
import com.cloud.lan.service.ISubmailTaskService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by zhouquan on 2022/9/18.
 */
@RestController
@RequestMapping(value = {"/v1/manage/submail/task"}, method = {RequestMethod.GET, RequestMethod.POST})
public class SubmailTaskManageApi {


    @Resource
    private ISubmailTaskService submailTaskService;

    @RequestMapping("manageList")
    public BaseResponse<Object> manageList(SubmailTaskReq req) {
        return submailTaskService.manageList(req);
    }

    @RequestMapping("operate")
    public BaseResponse<Object> operate(SubmailTaskReq req) {
        return submailTaskService.operate(req);
    }
}
